import { dayjs } from 'element-plus';
import { App } from 'vue';
const TIME_TYPE = 'YYYY-MM-DD HH:mm:ss';
export function formatTime(app: App, timeType = TIME_TYPE) {
  app.config.globalProperties.$filter = {
    formatTime(time: string) {
      return dayjs(time).format(timeType);
    }
  };
}
